package com.canyue.text.Controller;

import com.canyue.text.Entity.Text;
import com.canyue.text.Mapper.TextMapper;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/taos")
public class TextController {

    @Resource
    TextMapper textMapper;

    @GetMapping("/get")
    public List<Text> Hello(){
        return textMapper.GetList();
    }

}
